package com.gusti.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
	
	@RequestMapping(value = "/", method = RequestMethod.GET)
	@ResponseBody
	public String showHome(){

		return "hello";
	}

	@RequestMapping(value = "/{param1}/{param2}", method = RequestMethod.GET)
	@ResponseBody
	public String showHome( @PathVariable("param1") String param1, @PathVariable("param2") String param2 ){
		
		return param1 + " | " + param2;
	}

}